package dao

import (
	"adam2/internal/dto"
	"adam2/internal/model"
)

type MonitorCurrentPriceDao interface {
	// 添加
	Add(trainingInfo *model.TrainingInfo) error

	// 根据条件，查询记录
	Find(monitorCurrentPrice model.MonitorCurrentPrice) model.MonitorCurrentPriceArray

	// 分页显示
	Page(transactionType int, code string, name string, available int, pageNo int, pageSize int) dto.MonitorCurrentPriceDtoArray

	// 分页显示，返回总数
	PageTotal(transactionType int, code string, name string, available int) int

	// 根据id更新available
	UpdateAvailableById(id int, available int)

	// 删除监控
	DeleteMonitorCurrentPrice(id int)
}
